package com.weiyan.blog.controller;

import com.weiyan.blog.response.Result;
import com.weiyan.blog.response.ResultCode;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author misterWei
 * @create 2020年01月21号:15点14分
 * @mailbox mynameisweiyan@gmail.com
 *
 * 专门返回认证信息的结果集
 */
@CrossOrigin
@RestController
@RequestMapping("/auth")
public class AuthController {

    @RequestMapping(value = "login_result")
    public Result loginResult(HttpServletRequest request){
        Map<String, String[]> parameterMap = request.getParameterMap();

        return new Result(ResultCode.USERAUTHERROR);
    }

}
